@import "@/app/styles";

.Search {
  $this: &;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 100%;
  width: 100%;
  background-color: transparent;
  padding: 16px 16px;

  &-Form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
  }

  &-InputWrapper {
    padding: 0;
    width: 100%;
    height: 46px;
    background-color: transparent;
  }

  &-Input {
    font-family: $base-font-family;
    font-size: $base-font-size;
    font-weight: $base-font-weight;
    font-style: $base-font-style;
    line-height: $base-line-height;
    margin: 0;
    padding: 0 16px 0 50px;
    width: 100%;
    height: 45px;
    border: 1px solid transparent;
    border-radius: $border-radius;
    color: $color-white;
    background-color: $color-night;
    outline: transparent;
    transition: all $transition;

    &::placeholder {
      background-color: transparent;
      color: $color-gray;
    }
  }

  &-Icon.Icon {
    position: absolute;
    left: 15px;
    width: 24px;
    height: 24px;
    fill: $color-gray;
  }

  &__active {
    width: 100%;

    #{$this}-Input {
      background-color: transparent;
      border: 1px solid $color-primary;
    }
  }
}
